<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- https://www.nowcoder.com/test/question/done?tid=53217796&qid=501282#summary -->
    <script>
        // var b = 3;
        // (function () {
        //     b = 5;
        // })();
        // console.log('b',b);

        var b = 3;
        (function () {
            b = 5;
            var b = 2;
        })();
        console.log(b);
    </script>
</body>

</html>